/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 王圆豪
 * Date: 2024-05-18
 * Time: 19:48
 */
public class Dog {
    public String name;
    public int age;

    public static double weight;

    public Dog() {
//        this.name = "旺财";
//        this("小黑", 3);
    }

    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }

//    class Pdog{
//        public void test() {
//            System.out.println("test()方法执行了....");
//        }
//    }

//    public void kk() {
//        System.out.println(this.name);
//    }

//    public void setName(String name, int age) {
//        this.name = name;
//        this.age = age;
//        this.eat();
//    }

    public static void rest(String name) {
        System.out.println(name + " 正在休息...");
//        eat();
    }

    public void eat() {
        System.out.println(this.name + "正在吃狗粮....");
//        rest(this.name);
    }

    public void bark() {
        System.out.println(this.name + "正在汪汪叫....");
    }
}
